// BmpBtn.h: interface for the CBmpBtn class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_BMPBTN_H__8564B8B0_C4B4_4438_8FEF_CDE692B83D3A__INCLUDED_)
#define AFX_BMPBTN_H__8564B8B0_C4B4_4438_8FEF_CDE692B83D3A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CBmpBtn  
{
public:
	CRect    m_BoundRect;
// Execute this function when button down
	CString m_strFunDes;
    CString m_strTip;
public:
	void Visible(BOOL bVisible);
	BOOL IsInBtn(CPoint pt);
	void MouseOut(CDC* pDC);
	void MouseIn(CDC* pDC);
	BOOL Create(CString strBmpMouseIn, CString strBmpMouseOut,CString strBmpMask);
	CBmpBtn();
	virtual ~CBmpBtn();
private:

	BOOL m_bVisible ;
	CDC m_MemInDC,m_MemOutDC,m_MemMaskDC;
	CBitmap m_bmpMouseIn;
	CBitmap m_bmpMouseOut;
	CBitmap m_bmpMask;
};

#endif // !defined(AFX_BMPBTN_H__8564B8B0_C4B4_4438_8FEF_CDE692B83D3A__INCLUDED_)
